﻿using TianYuan.Core.Dependency;
using TianYuan.Core.Domain.Uow;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TianYuan.Data.Dapper.Uow
{
    /// <summary>
    /// 工作单元接口(进行事务管理)
    /// </summary>
    public interface IUnitOfWork :/* ITransientDependency,*/ Core.Domain.Uow.IUnitOfWorkBase, IDisposable
    {
        /// <summary>
        /// 手动开启事务
        /// </summary>
        void BeginTransaction();
        /// <summary>
        /// 手动回滚事务
        /// </summary>
        void Rollback();
    }
}
